﻿
@{
    Layout = null;
}


<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="">
 <!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EDUSOHO安装程序</title>
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" />
    <link href="~/assets/css/install.css" rel="stylesheet" />
    <!--[if lt IE 9]>
      <script src="../assets/libs/html5shiv.js"></script>
    <![endif]-->
    <!--[if IE 8]>
      <script src="../assets/libs/respond.min.js"></script>
    <![endif]-->

</head>
<body>
    <div class="install-container">
        <div class="paper">
            <div class="paper-heading">
                <h1><span class="brand">EduSoho网络课堂</span> <span class="text-muted">安装向导 <small class="text-info">v7.2.0</small></span></h1>
            </div>
            <div class="paper-body">
                <ul class="nav nav-pills nav-justified">
                    <li class="disabled "><a>1. 环境检测</a></li>
                    <li class="disabled "><a>2. 创建数据库</a></li>
                    <li class="disabled "><a>3. 初始化系统</a></li>
                    <li class="disabled active"><a>4. 完成安装</a></li>
                </ul>

                <h4 class="text-success">恭喜，系统已安装成功！</h4>
                <div id="content">
                </div>
                <div class="well key-result-well key-creating">
                    正在生成授权码，请稍等...
                    <br>
                    <small class="text-muted">(如长时间未响应，请刷新页面重试。)</small>
                </div>

                <div class="well key-result-well key-create-fail hide">
                    <p class="text-danger">授权码生成失败！ 原因是：</p>
                    <p class="text-danger" id="error-reason"></p>
                    <p><a href="" class="btn btn-danger">重试</a></p>
                </div>

                <div class="well key-result-well key-created hide">
                    <p><strong>AccessKey:</strong> <span id="access-key"></span></p>
                    <p><strong>SecretKey:</strong> <span id="secret-key"></span></p>
                    <p class="text-warning"><strong>请妥善保管授权码，升级EduSoho系统、购买EduSoho应用、使用EduSoho云服务，都需使用此授权码。</strong></p>
                </div>
                <p>&nbsp;</p>
                <div class="actions">
                    <p><a href="@Url.Action("Index","Admin")" class="btn btn-primary disabled" id="go-btn">进入系统！</a></p>
                </div>


            </div>
        </div>
    </div>


    @*<script>
        seajs.use(['jquery'], function ($) {
            window.$ = $;

            $.post('start-install.php?step=999', function (response) {
                $('.key-result-well').addClass('hide');
                if (response.accessKey && response.secretKey) {
                    $("#access-key").text(response.accessKey);
                    $("#secret-key").text(response.secretKey);
                    $('.key-created').removeClass('hide');
                } else {
                    if (response.error) {
                        $("#error-reason").html(response.error);
                    } else {
                        $("#error-reason").html('生成Key失败，请联系EduSoho官方技术支持！');
                    }
                    $('.key-create-fail').removeClass('hide');
                }
            }, 'json').done(function () {
                $("#go-btn").removeClass('disabled');
            }).fail(function () {
                $("#error-reason").html('生成Key失败，请联系EduSoho官方技术支持！');
                $('.key-create-fail').removeClass('hide');
            });


            $.post('start-install.php?step=888', function (response) {
                $('#content').html(response.content);
            });

        });
    </script>*@


</body>
</html>
